package com.dq.domain.setup;

import com.dq.vo.baseVo.VO;
import com.dq.domain.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

/**
 * @Author luchangtong
 * @Date 2019/12/9 11:01
 */
@Entity
@Data
@ApiModel("跟踪记录生成频率设置")
public class TrackGenerateRateSet extends BaseEntity implements VO.ToVO{
    @ApiModelProperty("天数")
    protected Long dayNum;
    @ApiModelProperty("corn表达式")
    protected String expression;
    @ApiModelProperty("超时/生成")
    @Enumerated(EnumType.ORDINAL)
    protected SetStatus status;

    public enum SetStatus{
        generate("生成"),
        overtime("超时");
        public String name;

        SetStatus(String name){
            this.name = name;
        }
    }

    @Data
    @ApiModel(value = "返佣设置视图")
    public static class Vo implements VO {

    }

    @Override
    public VO toVO(boolean isRecursion) {
        Vo vo = new Vo();
        return vo;
    }
}
